package login

import (
	"fmt"
	"myOJ/db/logindb"
	"strings"
)

func Verify(name string, password string) bool {
	_, _, truePassword, err := logindb.TakeAccount(name)
	if err != nil {
		fmt.Println("varify error", err)
		return false
	}
	if strings.Compare(truePassword, password) == 0 {
		return true
	} else {
		return false
	}
}
